<?
require("config.php");

$show_backnav = "menu";
$location_status .= "| Enquire";


$menutype = 2;

if (NULL!=$action){

   $Query = "delete from $table where id=$id Limit 1";

   myQuery($Query);


   header("location:" . $rela_path . "share/msg.php?v=703");

   exit();

}


if (!checkRecord($table,$id)){

	header("location:" . $rela_path . "share/msg.php?v=9002");
  
}

$Query = "select 
	code,
	name,
	status,
	publish_date,
	details,
	order_index,
	site_title,
	site_description,
	site_keywords, type
from $table where id=$id Limit 1";

$r = myQuery($Query);

	$Code=			$r[0][0];
	$Name=			$r[0][1];
	$Status=		$r[0][2];
	$Publish_date=	$r[0][3];
	$Details=		$r[0][4];
	$Order_index=	$r[0][5];

	$Site_title= $r[0][6];
	$Site_description= $r[0][7];
	$Site_keywords= $r[0][8];
$type = $r[0][9];

require($rela_path . "inc/header.php");
require($rela_path . "bin/date.php");
?>

<!--Content Start-->
<form action="" method="post" enctype="multipart/form-data" name="form1">  
<!--hidden filed-->
<input name="id" type="hidden" value="<?print($id)?>">
<input name="action" type="hidden" value="delete">

  <table width="95%" border="0" align="center">
                      <tr> 
                        
      <td>&nbsp; </td>
                      </tr>
                      <tr> 
                        
      <td>
        <br>
	  <table border="0">
          <tr> 
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr> 
            <td class="tdheader">Code :</td>
            <td><?print($Code)?></td>
          </tr>
          <tr> 
            <td class="tdheader">Order :</td>
            <td><?print($Order_index)?></td>
          </tr>
          <tr> 
            <td class="tdheader">Name :</td>
            <td><?print($Name)?>
            </td>
          </tr>
          <tr>
            <td class="tdheader">Type :</td>
            <td>
              <?
switch ($type) {

  case 1:
	echo "Evening Seminars";
	break;
	  case 2:
	echo "Training Courses";
	break;
	  case 3:
	echo "Training Programs";
	break;
	  case 4:
	echo "In-house Training";
	break;
}
?>
            </td>
          </tr>
          <tr> 
            <td valign="top" class="tdheader">Publish :</td>
            <td> 

<?print($Status)?></td>
          </tr>

          <tr> 
            <td valign="top" class="tdheader">Publishing date :</td>
            <td> 
<?print(OutDate($Publish_date))?></td>
          </tr>


          <tr> 
            <td class="tdheader">Details :</td>
            <td> <?print($Details)?>
            </td>
          </tr>

          <tr> 
            <td class="tdheader">Site Title :</td>
            <td> <?print($Site_title)?>
            </td>
          </tr>

          <tr> 
            <td class="tdheader">Site Description :</td>
            <td> <?print($Site_description)?>
            </td>
          </tr>

          <tr> 
            <td class="tdheader">Site keywords :</td>
            <td> <?print($Site_keywords)?>
            </td>
          </tr>		 


          <tr> 
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
        </table>
      </td>
    </tr>
    <tr>
      <td>&nbsp;</td>
    </tr>
  </table>

</form>
<!--Content End-->
<?require($rela_path . "inc/footer.php");?>
        